package com.yuantu.judiciary.model.vo;

import com.yuantu.judiciary.model.dto.EntPersonDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * 企业主要成员
 *
 * @author syw
 * @since 2023-07-20
 **/
@Data
@ApiModel("企业主要成员")
@Builder
public class EntPersonVO {
    @ApiModelProperty("企业名称") private String entname;
    @ApiModelProperty("高管姓名") private String pername;
    @ApiModelProperty("职位代码") private String positioncode;
    @ApiModelProperty("职位") private String position;
    @ApiModelProperty("高管总数量") private String personamount;

    public static EntPersonVO getEntPerson(EntPersonDTO data) {
        return EntPersonVO.builder()
                .entname(data.getENTNAME())
                .pername(data.getPERNAME())
                .positioncode(data.getPOSITIONCODE())
                .position(data.getPOSITION())
                .personamount(data.getPERSONAMOUNT())
                .build();
    }

}
